img->scale(0.5) produces images of zero size. [3384]