Check to see if filename already in use when saving image