Permit queries after image paths.

As Drupal uses queries for caching.