Timthumb function for wordpress.