Implemented url encoding and validation plus css for photoView, also increased php memory_limit since imagecreatefromjpg had to allocate to much memory.