deleting errors in photos controller