image error ok functionality added