Fixed image not uploading error