ImageUtils.getSizeAndType() utility plus tests

I guess this is faster than dividing by two + floor, but it's less readable. Above you are using Math.floor rather than ~~() or something similar, so I feel like readability should come first. Perhaps a comment describing what you are doing?