added codes to show image