Maybe also accept tuple of scale factors (mx, my) for different scaling along the x and y axes respectively? If it is scalar, it is assumed to be equal.