improved robustness of image helper