compatibility with old images for getUrl and getpath