Writing images from text