Update script to resize images