STScreenBuffer library allows you working with images by bits. You could read and change each point. It could be useful if you need prepare image and then draw it (screen buffer).