whatever repair you did may have fixed your corrupt rows but it did not correct your auto_increment field. You must use phpmyadmin and set in your structure the auto_increment field to the last insert number of that table. Definate mysql corruption as it is trying to insert a photo into a row that already exists.
Code:
Content visible to verified customers only.