ImageUtils.getSizeAndType() utility plus tests

Actually the message is needed here. If we hit this code on the second try when reading the entire file, then it means we have a corrupt jpeg file.  But I can shorten the message.