diff --git a/image_resize_filter.module b/image_resize_filter.module
index 02d0c0a..50d2fc9 100644
--- a/image_resize_filter.module
+++ b/image_resize_filter.module
@@ -247,7 +247,8 @@ function image_resize_filter_get_images($settings, $text) {
   foreach ($matches[0] as $key => $match) {
     $has_link = (bool) $matches[1][$key];
     $img_tag = $matches[3][$key];
-    $src = $matches[4][$key];
+    // Remove query string if any from the url.
+    $src = preg_replace('/\?.+/', '', $matches[4][$key]);
 
     $resize = NULL;
     $image_size = NULL;
