Fixed issue with large image sizes. Tested locally and seemed to work.