resize math img