adds getBounds() to Image class, add new Imagemask mask type

getBounds() is usefull to calculate proper bounding boxes when the image is rotated/scaled.
Imagemask is a simplified Pixelmask that knows how to handle Image subclasses.