Fixed photo security issue