Refactor image uploading into use-case