fix compile errors in ImageUtils