changes to secure photo view