Pixel extraction

* implemented extractPixels() method
* replaced java.awt.Point with java.awt.geom.Point2D
* added JUnit test for pixel extraction