iOS: Added support for dirty rects and IBasicImage.