Image uploading bug fix

typo and indentation