fix bugs

fixed equality operator instead of assignment (line 73)

on line 56 improved regexp to allow query strings, since many time random query strings are added to bypass image cache