timthumb upgrade and thumbnail fixes