adding script for handling image resize requests