Fix: Issue with drawing a portion of an image.

Width was being used in place of height to calculate the height.