Attempted at implementing text and image rendering in a implementation independent way