Add tests for Image, GdImage and Picture

Unit tests for the new image classes.