fixed operations section image resize function