code changes for display image