added photo and attachment models