more accurate image-path implementation