added canvas handler to draw gif image on event