Today I faced a problem with timthumb script on a client server. I did some research and found the following solution.