cleaned up canvas scaling