Fix resolution bug in ImageUtils.