removed thumb_location function. it is not needed