adds support for creating Photo type