Minor changes to Imageutils