Fixed img directory bug