ImageUtils.getSizeAndType() utility plus tests

No need for console.warn since this is actually an expected condition.  You're right that no error message is needed here.