Sample to display image on error