added pad func to event_image pul