refactored create method

Refactored the create  method to upload pictures