cleaning up photo template