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
Merge pull request #4 from dragosmocrii/patch-1

fix bugs