ImageUtils.getSizeAndType() utility plus tests

Do we want the same tolerance for PNG's? Does it matter?