Updated TimThumb handling