Better image processing error handling.