update phpthumb class