Strip query parameters from url in thumbnail tag

In the thumbnail mezzanine template tag, check if there are query
parameters in the image url and strip them.
Clean up querytring handling in thumbnails