show image if type is image