Why are there lines in the histogram?
The more scaling up you do from the original data, the more blank bars show up in the histogram because of rounding. Because we're only scaling up from narrower-bandwidth 8-bit images, some bars will always appear.