rewrite photo view