Uploading picture now shows.

Fixed picture scaling code to work on all sizes of images.