Fixed new images getting empty IDs
still when new picture is assigned, all of the new items go to the same
coordinates?