Fixed logic avoid_cache

Now if avoid_cache is true, all the images will be queued (before only
the image url without avoid cache suffix was queued)