Coded cpGetTileDimension and updated canvas_draw to use this one