Reject image promise on error.