upload: remove imgDirection requirement and better handling of time