add script to resize images