Added a loader to uploading images