Fixed the PerspectiveGenerator function completely