Base class for loading, manipulating and saving images in Perl