#511 - Prevent broken image files, load into temp file first