Fix cached image URL query