Added pngimage and gifimage classes.