Added duplicate image checking on image add.