fixed autofit bug by doing it myself, not using canvas transform