Controlling output width and height; size safe-guard