write.bitmap