use event.width and event.height as image size