change eventhendler for images