Fixed bug when image with query string wasn't downloaded properly