Limit the size of pixmap cache.
Avoid copying subimages to speed up scaling images.