FIxing uploading of images