fixing dir for images