Set the progress to 0 on submit
Updated the google analytics script
Added support for specifying the image download and output dirs
Added support to get the image name without resolution part

The function is used to get the name of an image without the resolution
component to help in matching the same image to multiple resolutions.