Fixed Problem with Small Photos

Fixed a bug with photos smaller than the display window not working.
Thanks to erict15 for reporting this!