fix traversing to images