scale images to 640x480 when uploading