added more debugging code to photos#create method