Implements drawing, fixes scaling issues with framebuffer