Modularize the call to add a photo div