adding post treatment to image resize function