add script to image resize