make image uploading actually work