If image height or width is 0, bail out of sizing routine. JN