Getting photo table ready for polymorphic setup