organizes img directory