Fixed bug with images uploading

Images were not being saved correctly and were overwriting each other