Prevent crash with images - still don't render in web server, but should function when uploaded