Fixed slight bug with image resizing.