Another attempt at getting proper image uploading