Combine publish with photo.php

Combine publish with photo.php