Add method to mark image as failed.