added a new parameter to uploadImages for forcing filename