add improved image utils