bug with image uploading fixed