ImageUtils.getSizeAndType() utility plus tests

Does #moz-samplesize only work with jpeg?