ImageUtils.getSizeAndType() utility plus tests

Looks like this error string isn't really used. Perhaps a `console.warn`?