Implemented events necessary for image resize