Added missing point array generation code
Moved Point2D to own file. Added caching for parsed images.