Common Photo Mechanic uploader code