added TILE_ORIGIN flag to Graphics