fixed error handling for broken full-color images