ImageUtils.getSizeAndType() utility plus tests

This should also return a rejected promise. There is a nice discussion of this here: https://github.com/domenic/promises-unwrapping/issues/24