Change method to handle (an synchronize) gd image resource between objects of Image/Canvas/Helpers classes by adding GDResource class which also provide imagedestroy functionality for shared handle (using reference counting on shared object). Also deleted SeekableIterator methods from Canvas, moved calculateAvgLuminance to Image and added means to create images directly from Canvas (create* functions). Fixed or changed some phpdocs.