Fix up image uploading