photo preview fixes #268