added show and index support for photo