fixes path to img file