Fixed issuw with image upload