fixes photo insert