Changes to photo inserting