fix error when showing image from event