added photoView constructor function and render prototype