writing text to bitmap script